#!/usr/bin/env ruby

puts ".result.state: FAILED"
$stdin.each_line do |line|
  match_data = line.match(/Result:\s(.*)/)
  if match_data
    value = match_data[1]
    puts ".result.state: #{value}"
  end
end
